Global Index
HTML5 JS API Index > ECMAScript Tutorials & Specs

Global

The unique global object is created before control enters any execution context.

Properties
number
Infinity
The value of Infinity is +∞ (see 8.5). This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
number
NaN
The value of NaN is NaN (see 8.5). This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
object
undefined
The value of undefined is undefined (see 8.1). This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
Operations
string
decodeURI(string encodedURI)
The decodeURI function computes a new version of a URI in which each escape sequence and UTF-8 encoding of the sort that might be introduced by the encodeURI function is replaced with the character that it represents. Escape sequences that could not have been introduced by encodeURI are not replaced.
string
decodeURIComponent(string encodedURIComponent)
The decodeURIComponent function computes a new version of a URI in which each escape sequence and UTF-8 encoding of the sort that might be introduced by the encodeURIComponent function is replaced with the character that it represents.
string
encodeURI(string uri)
The encodeURI function computes a new version of a URI in which each instance of certain characters is replaced by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.
string
encodeURIComponent(string uriComponent)
The encodeURIComponent function computes a new version of a URI in which each instance of certain characters is replaced by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.
any
eval(string x)
boolean
isFinite(double n)
Returns false if the argument coerces to NaN, +∞, or −∞, and otherwise returns true.
boolean
isNaN(double n)
Returns true if the argument coerces to NaN, and otherwise returns false.
double
parseFloat(string s)
The parseFloat function produces a Number value dictated by interpretation of the contents of the string argument as a decimal literal.
int
parseInt(string s, int radix)
The parseInt function produces an integer value dictated by interpretation of the contents of the string argument according to the specified radix. Leading white space in string is ignored. If radix is undefined or 0, it is assumed to be 10 except when the number begins with the character pairs 0x or 0X, in which case a radix of 16 is assumed.